
workdir="/home/ceph-deploy.d/" 
cd $workdir

mon_host="zk23-01"
#echo "mon_host: $mon_host"

for host in $mon_host
do
	echo "ssh $host service ceph stop"
	ssh $host service ceph stop
	echo "ssh $host rm -fr /var/lib/ceph/mon/*"
        ssh $host rm -fr /var/lib/ceph/mon/*
        echo "ssh $host rm -fr /var/run/ceph/*"
        ssh $host rm -fr /var/run/ceph/*
        echo "ssh $host mv /etc/ceph/ceph.conf  /etc/ceph/ceph.conf.last_backup"
        ssh $host mv /etc/ceph/ceph.conf  /etc/ceph/ceph.conf.last_backup
done

